package com.zatech.cgnci.project.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("cgnci_claim_settlement_detail_task")
@ApiModel(value = "CgnciClaimSettlementDetailDO对象", description = "结算明细表")
public class CgnciClaimSettlementDetailTaskDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("明细ID")
    @TableId(value = "detail_id", type = IdType.AUTO)
    private Long detailId;

    @ApiModelProperty("再保人ID")
    private Long reinsurerId;
    @ApiModelProperty("任务号")
    private String taskNo;

    @ApiModelProperty("案件号")
    private String caseNo;
    @ApiModelProperty("明细类型(INWARD-分入结算 RECOVERY-转分摊回)")
    private String detailType;

    @ApiModelProperty("险种")
    private String riskType;

    @ApiModelProperty("标的名称")
    private String subjectName;

    @ApiModelProperty("层号")
    private String layerNo;

    @ApiModelProperty("层名称")
    private String layerName;

    @ApiModelProperty("金额类型")
    private String amountType;

    @ApiModelProperty("结算币种")
    private String settlementCurrency;

    @ApiModelProperty("结算金额(结算币种)")
    private BigDecimal settlementAmount;

    @ApiModelProperty("原始币种")
    private String originalCurrency;

    @ApiModelProperty("结算金额(原始币种)")
    private BigDecimal settlementAmountOriginal;

    @ApiModelProperty("承接比例")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal shareRatio;

    @ApiModelProperty("分出比例")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal cededRatio;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("创建人")
    private String creator;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("更新人")
    private String updater;
} 